body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.section {
    margin-bottom: 30px;
}

h2 {
    color: #34495e;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.input-group {
    display: flex;
    gap: 10px;
}

input[type="url"],
input[type="text"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="url"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

button {
    padding: 12px 20px;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.result-section {
    margin-top: 30px;
}

.result-box {
    background-color: #dff0d8; /* 연두색 배경 */
    border: 1px solid #c8e6c9;
    color: #3c763d;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#shortenedUrl {
    font-weight: bold;
    font-size: 1.1rem;
    word-break: break-all;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    background-color: #4CAF50;
}

.button-group button:hover {
    background-color: #45a049;
}

.stats-result {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: bold;
}
