/* Component styles - forms, buttons, cards */

/* Permission badges and sharing styles */
.permission-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.9em;
    vertical-align: middle;
}

.drop-card.shared {
    border: 3px solid #3498db;
}

.view-only-label {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 10px;
}

.btn-share {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

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

/* Share modal styles */
.share-subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.shares-list {
    max-height: 400px;
    overflow-y: auto;
}

.share-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.share-info {
    flex: 1;
}

.share-eyedrop {
    font-weight: bold;
    margin-bottom: 5px;
}

.share-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.share-permission {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 4px;
}

.no-shares {
    text-align: center;
    color: #999;
    padding: 20px;
}

.modal-content.large {
    max-width: 600px;
    width: 90%;
}

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

input[type="datetime-local"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="datetime-local"]:focus {
    outline: none;
    border-color: #667eea;
}

small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

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

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

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


/* Buttons */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.admin-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
}

.admin-btn:hover {
    box-shadow: 0 5px 15px rgba(56, 239, 125, 0.4);
}

.logout-btn {
    background: #e74c3c;
    margin-top: 20px;
}

.logout-btn:hover {
    background: #c0392b;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.add-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 15px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-edit {
    background: #17a2b8;
    color: white;
}

.btn-edit:hover {
    background: #138496;
}

/* Drop cards */
.drop-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.drop-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.drop-card.overdue {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.drop-card.overdue .drop-name {
    color: #e74c3c;
}

.drop-card.overdue .time-since {
    color: #e74c3c;
}


.drop-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Eyedrop management items */
.eyedrop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #ddd;
}

.eyedrop-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.eyedrop-item-freq {
    font-size: 12px;
    color: #666;
}

/* Forms */
.add-eyedrop-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

/* Messages */
.message {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

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

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state */
.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}