* {
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    min-height: 100vh;
    padding: 20px;
}

.faultmsg{
    color: #ff0303;
    text-align: center;

}

.container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    min-height: 700px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forms-container {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-container,
.signup-container {
    width: 100%;
    height: 100%;
}

form {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 50px;
    height: 100%;
    width: 100%;
    text-align: center;
    max-width: 400px;
}

h1 {
    font-weight: 700;
    margin: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 2.2rem;
}

span {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

/* Durum Mesajları Stilleri */
.status-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 15px;
    margin: 0;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    margin-top: auto;
}

input,
select {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 12px 0;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    color: #333;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667eea' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

select:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    background-color: #eef0f2;
}

select option {
    color: #333;
    background-color: #fff;
}

select option[value=""][disabled] {
    color: #999;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

input:hover,
select:not(:disabled):hover {
    border-color: #667eea;
}

.forgot-password {
    color: #667eea;
    font-size: 14px;
    text-decoration: none;
    margin: 20px 0;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

button {
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 25px;
    margin-bottom: 20px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.verify{
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 15px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Sayfalar arası geçiş linkleri */
.signup-link,
.signin-link {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    width: 100%;
}

.signup-link p,
.signin-link p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.signup-link a,
.signin-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover,
.signin-link a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Form submit butonları için özel stiller */
button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Rol Seçimi Stilleri */
.role-selection {
    margin: 20px 0;
    text-align: left;
    width: 100%;
}

.role-label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.role-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.role-option:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.role-option input[type="radio"] {
    margin: 0;
    margin-right: 12px;
    width: auto;
    transform: scale(1.2);
}

.role-option input[type="radio"]:checked + .role-text {
    color: #667eea;
    font-weight: 600;
}

.role-text {
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        min-height: 600px;
        max-width: 100%;
        margin: 20px;
    }
    
    form {
        padding: 30px 30px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .status-message {
        padding: 12px;
        font-size: 12px;
    }
    
    button {
        padding: 12px 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }

    .dashboard-card{
        margin-top: 20px !important;
    }
    
    form {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .status-message {
        padding: 10px;
        font-size: 11px;
    }
    
    input,
    select {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    button {
        padding: 10px 25px;
        font-size: 13px;
    }
    .logout-btn{
        font-size: 10px !important;
        position: absolute !important;
        right: 5% !important;
        top: -20px !important;
    }
}

/* ===== KULLANICI DASHBOARD STİLLERİ ===== */

.prescription-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.header-section h1 {
    color: #333;
    margin-bottom: 10px;
}

.header-section p {
    color: #666;
    font-size: 16px;
}

.prescription-form {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prescription-form form {
    width: 100%;
    max-width: 400px;
    background: none;
    padding: 0;
    height: auto;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.medicines-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    min-height: 200px;
}

.medicines-container h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.medicine-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.medicine-info {
    flex: 1;
}

.medicine-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.medicine-details {
    color: #666;
    font-size: 14px;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-unavailable {
    background: #f8d7da;
    color: #721c24;
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.logout-btn:hover {
    background: #c82333;
}

.no-medicines {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* ===== ECZANE DASHBOARD STİLLERİ ===== */

.pharmacy-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.pharmacy-container .dashboard-card {
    max-width: 1800px;
}

.pharmacy-container .header-section {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;

}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.orders-section h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.order-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.order-id {
    font-weight: bold;
    color: #333;
    font-size: 18px;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.customer-info {
    margin-bottom: 15px;
}

.customer-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.customer-contact {
    color: #666;
    font-size: 14px;
}

.prescription-code {
    background: #e9ecef;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: monospace;
    font-weight: bold;
    color: #495057;
}

.medicines-list {
    margin-bottom: 20px;
}

.medicines-list h4 {
    color: #333;
    margin-bottom: 10px;
}

.medicines-list .medicine-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 4px solid #667eea;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-approve {
    background: #28a745;
    color: white;
}

.btn-approve:hover {
    background: #218838;
}

.btn-reject {
    background: #dc3545;
    color: white;
}

.btn-reject:hover {
    background: #c82333;
}

.btn-disabled {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
}

.no-orders {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.orders-table-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.orders-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.orders-table-header h3 {
    color: #333;
    margin: 0;
    font-size: 1.25rem;
}

.orders-table-container {
    overflow-x: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.orders-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.orders-table th,
.orders-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.orders-table th {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.orders-table tbody tr {
    transition: background-color 0.2s ease;
}

.orders-table tbody tr:hover {
    background-color: #f0f2ff;
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.orders-table td:first-child {
    font-weight: 600;
    color: #667eea;
}

.no-orders-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    margin: 0;
}

/* Gelen sipariş ID girişi ve aksiyon butonları */
.order-action-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 20px auto;
    flex-wrap: wrap;
    flex-direction: column;
    width: fit-content;
}

.order-id-input {
    width: 360px;
    max-width: 100%;
}

.radio-options {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.radio-option input[type="radio"] {
    margin: 0;
    margin-right: 8px;
    width: auto;
    transform: scale(1.1);
}

.radio-option input[type="radio"]:checked + .radio-text {
    color: #667eea;
    font-weight: 600;
}

.radio-text {
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
}

.submit-order-btn {
    padding: 12px 24px;
    margin-top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.submit-order-btn:hover {
    transform: translateY(-1px);
}

/* ===== RESPONSIVE TASARIM ===== */


@media (max-width: 768px) {
    .dashboard-card {
        padding: 20px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    .stat-number{
        font-size: smaller;
    }
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .prescription-container,
    .pharmacy-container {
        padding: 10px;
        width: 100%;
        margin-top: 30px;
    }
    .order-action-controls{
        width: 100%;
        justify-content: center !important;
    }
    .orders-table-header {
        flex-direction: column;
        align-items: stretch;
    }
    .orders-table th,
    .orders-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .logout-btn{
        font-size: 10px !important;
        position: absolute !important;
        right: 5% !important;
        top: -15px !important;
    }

}
@media (max-width: 1024px) {
    .prescription-container,
    .pharmacy-container {
        padding: 10px;
        width: 100%;
        margin-top: 30px;
    }
    .order-action-controls{
        width: 100%;
    }
    .logout-btn{
        font-size: 10px !important;
        position: absolute !important;
        right: 2% !important;
        top: -15px !important;
    }

    .stats-container{
        justify-content:center !important; 
    }
}