/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f7fa;
}

/* Landing page styles */
.landing-page {
    background-color: #f8f9fa;
}

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

.landing-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.landing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.landing-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.landing-main {
    padding-bottom: 60px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.app-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    height: 100%;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.app-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon i {
    font-size: 2.5rem;
}

.app-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-info h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.app-info p {
    color: #7f8c8d;
    margin-bottom: 20px;
    flex: 1;
}

.app-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-coming-soon {
    background-color: #f1c40f;
    color: #7f6000;
}

.landing-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

a {
    text-decoration: none;
    color: #3498db;
}

ul {
    list-style: none;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    transition: all 0.3s ease;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Sidebar styles */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul li {
    margin-bottom: 5px;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #bdc3c7;
    transition: all 0.2s ease;
}

.sidebar-nav ul li a:hover {
    background-color: #34495e;
    color: #ecf0f1;
}

.sidebar-nav ul li.active a {
    background-color: #3498db;
    color: #fff;
}

.sidebar-nav ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #34495e;
}

.user-profile {
    display: flex;
    align-items: center;
    color: #ecf0f1;
    margin-bottom: 10px;
}

.user-profile i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.logout-btn, .login-btn {
    display: flex;
    align-items: center;
    color: #bdc3c7;
    padding: 8px 0;
}

.logout-btn i, .login-btn i {
    margin-right: 10px;
}

/* Header styles */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #555;
}

.header-actions {
    display: flex;
    align-items: center;
}

.notification-icon {
    position: relative;
    margin-left: 15px;
    font-size: 1.2rem;
    color: #555;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive sidebar */
.sidebar-collapsed .sidebar {
    width: 70px;
}

.sidebar-collapsed .sidebar-header h1,
.sidebar-collapsed .sidebar-nav ul li a span,
.sidebar-collapsed .user-profile span,
.sidebar-collapsed .logout-btn span {
    display: none;
}

.sidebar-collapsed .sidebar-nav ul li a {
    justify-content: center;
    padding: 15px;
}

.sidebar-collapsed .sidebar-nav ul li a i {
    margin-right: 0;
    font-size: 1.2rem;
}

.sidebar-collapsed .user-profile {
    justify-content: center;
}

.sidebar-collapsed .user-profile i {
    margin-right: 0;
}

/* Cards and components */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: #3498db;
}

.btn-success {
    background-color: #2ecc71;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-warning {
    background-color: #f39c12;
}

.btn i {
    margin-right: 5px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

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

.form-control:focus {
    border-color: #3498db;
    outline: none;
}

/* Login page specific styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    font-size: 1.8rem;
    color: #2c3e50;
}

.login-form .form-group:last-child {
    margin-bottom: 0;
}

.login-form .btn {
    width: 100%;
}

.login-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Alert messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background-color: #f8f9fa;
}

.actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: #f1f1f1;
    color: #555;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: #e0e0e0;
}

.btn-icon.btn-danger {
    background-color: #fee;
    color: #e74c3c;
}

.btn-icon.btn-danger:hover {
    background-color: #fdd;
}
