:root {
    --roby-red: #FF1A3E;
    --roby-orange: #FF5722;
    --roby-blue: #1976D2;
    --roby-yellow: #FF9800;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

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

body {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--roby-red) 0%, var(--roby-orange) 100%);
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.header-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    width: 100%;
}

.logo {
    width: 180px;
    height: auto;
}

.hero {
    padding: 4rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, var(--roby-blue) 0%, var(--roby-yellow) 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0.8;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 60%;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--roby-red), var(--roby-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.app-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-color-bar {
    height: 8px;
    width: 100%;
}

.red-bar {
    background-color: var(--roby-red);
}

.orange-bar {
    background-color: var(--roby-orange);
}

.blue-bar {
    background-color: var(--roby-blue);
}

.yellow-bar {
    background-color: var(--roby-yellow);
}

.card-content {
    padding: 1.5rem;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--white);
}

.app-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.app-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.app-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.app-link:hover {
    background-color: #e0e0e0;
}

.cta-section {
    background: linear-gradient(135deg, var(--roby-blue) 0%, var(--roby-yellow) 100%);
    padding: 4rem 0;
    color: var(--white);
    text-align: center;
    margin: 3rem 0;
    border-radius: 8px;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--white);
    color: var(--roby-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-links h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* Login Form Styles */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--roby-blue);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--roby-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.login-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--roby-red) 0%, var(--roby-orange) 100%);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.login-button:hover {
    opacity: 0.9;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.login-footer a {
    color: var(--roby-blue);
    text-decoration: none;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.user-welcome {
    font-size: 1.2rem;
}

.logout-link {
    color: var(--roby-red);
    text-decoration: none;
    font-weight: 500;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hero-content {
        width: 100%;
    }
    
    .hero::before {
        width: 100%;
        opacity: 0.2;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}


/* Register toggle section */
.auth-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-toggle-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    position: relative;
}

.auth-toggle-btn.active {
    color: var(--roby-blue);
}

.auth-toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--roby-blue);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.error-message {
    background-color: #ffeeee;
    border-left: 4px solid var(--roby-red);
    padding: 1rem;
    margin: 1rem 0;
    color: #d32f2f;
}

.success-message {
    background-color: #e6ffee;
    border-left: 4px solid #28a745;
    padding: 1rem;
    margin: 1rem 0;
    color: #28a745;
}

.resend-verification {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.resend-verification form {
    display: flex;
    gap: 0.5rem;
}

.resend-verification input[type="email"] {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.resend-verification button {
    background-color: var(--roby-blue);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #666;
}

.divider::before,
.divider::after {
    content: '';
    height: 1px;
    background-color: #ddd;
    flex: 1;
}

.divider span {
    padding: 0 1rem;
}

.sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    z-index: 1030;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.sidebar-apps {
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar.hidden {
    transform: translateX(250px); /* Move it off-screen to the right */
}

.avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.main-content {
/*    margin-right: 50px;*/
    min-height: 100vh;
    transition: margin 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        right: auto;
    }
    
    .main-content {
        margin-right: 0;
    }
}

.app-card {
    transition: transform 0.2s ease-in-out;
    border: none;
    border-radius: 10px;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.messages-container {
    margin: 1rem 0;
    z-index: 1000;
}

.messages-container .alert {
    margin-bottom: 0.5rem;
}