:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #10b981;
    --secondary-light: #d1fae5;
    --accent: #4caf50;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
}

a { 
    color: #00f;
}

a:visited { 
    color: #00f;
}

a.back {
    font-size: 0.9rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */

header {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.user-info a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.user-info a:visited {
    color: #fff;
}

.user-name {
    font-weight: 500;
}

.user-record {
    font-size: 0.8rem;
    opacity: 0.9;
}

.user-record span {
    text-transform: uppercase;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.avatar a, .avatar a:visited {
    color: #fff;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 2.5rem;
}

.logo a, .logo a:visited {
    color: #fff;
    text-decoration: none;
}

.logo h1 {
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 2rem;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0;
}

/* Main */

main {
    padding: 2rem 0;
    min-height: calc(100vh - 180px);
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.text-gray {
    color: var(--gray);
}

.button-share {
    margin-top: 1rem;
    color: #369;
    cursor: pointer;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: white;
    color: var(--dark);
    border: 1px solid var(--gray-light);
}

.btn-secondary:hover {
    background-color: var(--light);
}

.btn-warning {
    background-color: #ff0000;
    color: white;
}

.btn-warning:hover {
    background-color: #cc0000;
}


.link-register {
    margin-top: 1rem;
    text-align: center;
}


/* Popup notification styles */
.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.popup.show {
    transform: translateX(0);
}

.popup.error {
    background: #f44336;
}

.popup-icon {
    font-size: 20px;
}

.popup-message {
    flex: 1;
}

.popup-close {
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.popup-close:hover {
    opacity: 1;
}


/* Footer */

footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content a, .footer-content a:visited {
    color: #fff;
    text-decoration: none;
}

/* Responsive  */

@media (max-width: 768px) {

    header {
        position: initial;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .link-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .logo {
        flex-direction: column;
        align-items: center;
    }

    .user-info {
        justify-content: center;
    }

    main {
        padding: 0;
    }

    .container {
        padding: 0;
    }

}
