* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 300;
}

.sync-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    border-left: 4px solid #2196f3;
}

.sync-status {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 5px;
}

.sync-info small {
    color: #666;
    font-size: 0.9em;
}

.auth-status {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: linear-gradient(45deg, #fff3e0, #ffe0b2);
    border-radius: 10px;
    border-left: 4px solid #ff9800;
}

.auth-status.authenticated {
    background: linear-gradient(45deg, #e8f5e8, #c8e6c9);
    border-left-color: #4caf50;
}

.auth-indicator {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #f57c00;
    margin-bottom: 5px;
}

.auth-status.authenticated .auth-indicator {
    color: #388e3c;
}

.auth-status small {
    color: #666;
    font-size: 0.9em;
}

.icons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 4em;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.icon.active {
    transform: scale(1.1);
}

.toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.status {
    font-size: 1.2em;
    font-weight: bold;
    color: #666;
    transition: color 0.3s ease;
}

.status.on {
    color: #28a745;
}

.status.off {
    color: #dc3545;
}

.toggle-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.toggle-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.toggle-btn:active:not(:disabled) {
    transform: translateY(0);
}

.toggle-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}

.password-section {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 30px;
}

.password-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.password-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#password-input {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
    min-width: 250px;
}

#password-input:focus {
    border-color: #667eea;
}

.password-form button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

#auth-message {
    min-height: 20px;
    font-weight: 600;
}

#auth-message.success {
    color: #28a745;
}

#auth-message.error {
    color: #dc3545;
}

.connection-info {
    text-align: center;
    padding: 20px;
    background: #f1f3f4;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.connection-info p {
    margin-bottom: 10px;
    color: #333;
}

#external-url {
    display: block;
    background: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin: 10px 0;
    font-family: monospace;
    font-size: 0.9em;
    color: #666;
}

.copy-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #6c757d;
    color: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #5a6268;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .icons-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .password-form {
        flex-direction: column;
        align-items: center;
    }
    
    #password-input {
        min-width: 200px;
    }
    
    .sync-info, .auth-status {
        padding: 10px;
    }
    
    .connection-info {
        padding: 15px;
    }
} 