/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #008080; /* Full background teal */
    color: #ffffff; /* Default text white */
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #008080;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: #cceeee;
}

/* Main Content */
main {
    padding: 40px 20px;
    background-color: #008080;
    min-height: 85vh;
    text-align: center;
}

/* Footer */
footer {
    background-color: #006666;
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
}

.btn-add-new {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    margin-bottom: 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-add-new:hover {
    background-color: #218838;
}


/* Headings */
h1, h2, h3, h5 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Links */
a {
    color: #008080;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Form Container */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    color: #008080; /* Text inside white box = teal */
    text-align: left;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #008080; /* Label teal */
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
form select,
form input,
form button {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #008080; /* Input text teal */
}

/* Form Focus */
.form-group input:focus,
form select:focus,
form input:focus {
    border-color: #008080;
    outline: none;
}

/* Buttons */
.btn-submit,
form button,
button {
    width: auto;
    padding: 12px 24px;
    background-color: #28a745;
    color: #ffffff; /* Button text white */
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover,
form button:hover,
button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Back Button */
.btn-back {
    display: inline-block;
    margin: 15px 0;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #008080;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-back:hover {
    background-color: #cccccc;
    transform: translateY(-2px);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: #008080; /* Table text teal */
}

table th, table td {
    padding: 15px;
    border-bottom: 1px solid #ccc;
    text-align: center;
    font-size: 15px;
}

table th {
    background-color: #e0f7f7;
    font-weight: 700;
    color: #008080;
}

table tr:hover {
    background-color: #f0f8ff;
}

/* Cards */
.card {
    border-radius: 12px;
    background: #ffffff;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    color: #008080; /* Card text teal */
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Main Grid */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

/* Panels */
.left-panel, .middle-panel, .right-panel {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 85vh;
    overflow-y: auto;
    color: #008080; /* Panel text teal */
}

/* Medicine List */
#allMedicinesList {
    max-height: 100%;
    overflow-y: auto;
}

.medicine-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #008080;
}

.medicine-item:hover {
    background-color: #f0f8ff;
}

/* Search Items */
.search-item {
    padding: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    margin-bottom: 5px;
    color: #008080;
}

.search-item:hover {
    background-color: #e0e0e0;
}
.btn-back {
    background-color: teal;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-back:hover {
    background-color: #006666;
}

/* Mobile Responsive */
/* 📱 Smartphone View (Extra Responsive) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 10px 0;
    }

    header nav a {
        font-size: 16px;
        margin: 8px 0;
    }

    main {
        padding: 20px 10px;
    }

    .form-container, .card, table {
        width: 95%;
        margin: 15px auto;
        padding: 20px;
    }

    .main-container {
        grid-template-columns: 1fr;
    }

    .left-panel, .middle-panel, .right-panel {
        height: auto;
        padding: 15px;
    }

    .medicine-item, .search-item {
        font-size: 14px;
        padding: 8px;
    }

    table th, table td {
        font-size: 13px;
        padding: 8px;
    }

    .btn-submit, form button, button, .btn-back {
        width: 100%;
        padding: 10px 0;
        font-size: 15px;
    }

    footer {
        font-size: 13px;
        padding: 10px 5px;
    }

    footer div a {
        display: block;
        margin: 8px auto;
        width: 90%;
        padding: 12px 0;
        font-size: 16px;
    }
}

.btn-back {
    background-color: teal;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-back:hover {
    background-color: #006666;
}


.btn-add-new {
    display: inline-block;
    background-color: #008;
    color: white;
    padding: 10px 20px;
    margin-bottom: 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-add-new:hover {
    background-color: #008080;
}

