/* Custom styles for ChkrMed */

/* Base styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Main content layout */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

/* Container styles */
.container {
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
}

/* Form styles */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-control {
    background: linear-gradient(to right bottom, #000000, #333333);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
    color: white;
    padding: 15px 20px;
    height: auto;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    text-align: center;
    width: 100%;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-style: italic;
}

.form-control:focus {
    background: linear-gradient(to right bottom, #000000, #333333);
    border-color: var(--primary-color);
    box-shadow: 2px 2px 12px rgba(0,0,0,0.6);
    color: white;
}

/* Button styles */
.btn-primary {
    width: 75%;
    padding: 15px;
    border-radius: 50px;
    background: linear-gradient(to right, #006400, #008000) !important;
    border: none;
    font-weight: bold;
    margin: 20px auto;
    font-size: 20px;
    display: block;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(to right, #005000, #007000) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,100,0,0.4);
}

.btn-secondary {
    background: linear-gradient(to right, #333333, #666666);
    color: white;
}

/* Card styles */
.card {
    background: linear-gradient(to right bottom, #000000, #333333);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: white; /* Added text color white */
}

.card-body {
    padding: 1.5rem;
    color: white; /* Added text color white */
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background-color: #000000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 1rem 0;
}


.navbar-brand img {
    transition: transform 0.2s ease-in-out;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    color: var(--text-color) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Flash messages */
.flash-messages {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.flash-message {
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.8);
}

.flash-message.error {
    color: #ff4444;
}

.flash-message.success {
    color: #00ff00;
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Medication list styles */
.medication-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.medication-card {
    background: linear-gradient(to right bottom, #000000, #333333);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.medication-card:hover {
    transform: translateY(-5px);
}

.medication-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .navbar-collapse {
        background-color: #000000;
        padding: 1rem;
        border-radius: 0 0 15px 15px;
    }

    .btn-primary {
        width: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

/* Image preview */
#imagePreview img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* List group styles */
.list-group-item {
    background: linear-gradient(to right bottom, #000000, #333333);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: linear-gradient(to right bottom, #1a1a1a, #404040);
    transform: translateX(5px);
}

/* Custom utility classes */
.text-muted {
    color: #6c757d !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
} 