/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #e60808 100%);
    min-height: 100vh;
    padding: 20px;
    font-weight: 300;
    letter-spacing: 0.01em;
}

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

/* Login page - centered logo */
.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 200px;
    height: auto;
}

/* Header with logo in corner */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    height: 40px;
    width: auto;
}

h1 {
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

p {
    font-weight: 300;
}

.back-button {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.logout {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.logout:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-card {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(230, 8, 8, 0.3);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.dashboard-card h2 {
    margin-bottom: 15px;
    color: #000;
    font-size: 1.5rem;
}

.dashboard-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .header-right {
        flex-direction: column;
        gap: 5px;
    }
}

input[type="password"],
input[type="text"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    transition: border-color 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    font-weight: 300;
    color: #999;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #e60808;
}

textarea {
    min-height: 150px;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    line-height: 1.6;
}

button, .button {
    width: 100%;
    padding: 14px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

button:hover, .button:hover {
    background: #df1212;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(223, 18, 18, 0.4);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

#response {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 15px;
    color: #2c3e50;
    border-left: 4px solid #e60808;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

/* Loading animation */
#loading p {
    color: #e60808;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

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