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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

header .subtitle {
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #333;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-google {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.user-profile p {
    margin: 0;
}

.user-profile p:first-child {
    font-weight: 600;
}

.user-profile p:last-child {
    color: #666;
    font-size: 0.9rem;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

#connection-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
}

#connection-status.success {
    background: #d4edda;
    color: #155724;
}

#connection-status.error {
    background: #f8d7da;
    color: #721c24;
}

/* Progress */
.backup-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.progress-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    font-weight: 600;
    margin-bottom: 5px;
}

#current-file {
    color: #666;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Errors */
.error-banner {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#backup-errors {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
}

#backup-errors h3 {
    margin-bottom: 10px;
    color: #856404;
}

#error-list {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
}

#error-list li {
    padding: 5px 0;
    border-bottom: 1px solid #ffc107;
    font-size: 0.9rem;
}

/* Photo info */
#photo-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 8px;
    color: #0c5460;
}
