:root {
    --bg-start: #007bff;
    --bg-end: #00bcd4;
    --card-start: #00d4aa;
    --card-end: #00a085;
    --button-start: #007bff;
    --button-end: #0056b3;
    --update-start: #ff6b6b;
    --update-end: #ee5a24;
    --text-color: #333;
}

/* Global Styles */
body {
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

/* Header Section */
.header-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Code Cards */
.code-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
}

.code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.code-card-header {
    background: linear-gradient(135deg, var(--card-start), var(--card-end));
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.chatgpt-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}
.chatgpt-icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.code-card-body {
    padding: 25px;
    text-align: center;
}

.user-email {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    word-break: break-all;
}

.code-display {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed var(--card-start);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: linear-gradient(135deg, var(--button-start), var(--button-end));
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.copied-notification {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: 600;
    animation: fadeInOut 3s ease-in-out;
}

.no-codes-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.update-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--update-start), var(--update-end));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}


/* Login Form */
.login-form {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 12px 20px;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    border-color: var(--button-start);
}
