import {StyleSheet, Text, View} from 'react-native';
import React from 'react';
import R from '../../../assets/R';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: R.colors.white,
  },
  body: {
    flex: 1,
    backgroundColor: R.colors.white,
    marginHorizontal: 15,
    marginVertical: 10,
  },
  textSubTitle: {
    fontSize: R.fontsize.fontSizeSubTitle,
    fontWeight: '600',
    fontFamily: R.fonts.fontMedium,
    color: R.colors.black,
  },
  text_1: {
    fontSize: R.fontsize.fontSizeContent,
    fontWeight: '400',
    fontFamily: R.fonts.fontRegular,
    color: R.colors.blue,
  },
  text: {
    fontSize: R.fontsize.fontSizeContent,
    fontWeight: '600',
    fontFamily: R.fonts.fontMedium,
    color: R.colors.black,
  },
  text_2: {
    fontSize: R.fontsize.fontSizeContent,
    fontWeight: '400',
    fontFamily: R.fonts.fontRegular,
    color: R.colors.black,
  },
  textBtn: {
    color: R.colors.black,
    fontSize: R.sizes.xs,
    fontWeight: '400',
    fontFamily: R.fonts.fontRegular,
  },
  containerContent: {
    padding: 10,
    borderRadius: 10,
    borderWidth: 1,
    borderColor: R.colors.grayBorderInputTextHeader,
  },
  cardContainerContent: {
    backgroundColor: R.colors.white,
    padding: 10,
    borderRadius: 10,
    borderWidth: 1,
    borderColor: R.colors.grayBorderInputTextHeader,
  },
  card: {
    borderWidth: 1,
    borderColor: R.colors.grayBorderInputTextHeader,
    borderRadius: 100,
    height: 30,
    justifyContent: 'center',
    alignSelf: 'flex-start',
    paddingHorizontal: 10,
    backgroundColor: R.colors.orange,
    marginHorizontal: 5,
  },
  containerBtn: {
    flexDirection: 'row',
    alignItems: 'center',
    justifyContent: 'space-around',
    marginVertical: 10,
    borderRadius: 10,
    backgroundColor: R.colors.blue1,
    padding: 10,
    width: 300,
  },
  // New styles for inline replacements
  marginTop5: {
    marginTop: 5,
  },
  headerRow: {
    flexDirection: 'row',
    justifyContent: 'space-between',
    alignItems: 'center',
    marginBottom: 5,
  },
  statusText: {
    fontWeight: '600',
    fontFamily: R.fonts.fontMedium,
    fontSize: R.fontsize.fontSizeContent,
  },
  infoRow: {
    flexDirection: 'row',
    justifyContent: 'space-between',
    marginBottom: 5,
  },
  textWithMargin: {
    marginBottom: 5,
  },
  signerContainer: {
    justifyContent: 'space-between',
    marginBottom: 5,
  },
  departmentRow: {
    flexDirection: 'row',
    flexWrap: 'wrap',
    alignItems: 'center',
    marginBottom: 5,
  },
  cardText: {
    color: R.colors.white,
    fontSize: R.fontsize.fontSizeContent,
  },
  downloadIcon: {
    width: 20,
    height: 20,
  },
  flex1: {
    flex: 1,
  },
  marginHorizontal15: {
    marginHorizontal: 15,
  },
  renderItemContainer: {
    marginVertical: 7.5,
  },
  renderItemHeader: {
    flexDirection: 'row',
    marginBottom: 5,
  },
  modalContainerLarge: {
    maxHeight: '90%',
  },
  dropdownLabel: {
    marginBottom: 3,
    fontSize: R.fontsize.fontSizeLabel,
    fontFamily: R.fonts.fontMedium,
    fontWeight: '600',
    color: R.colors.black,
  },
  flatListContainer: {
    maxHeight: 150,
    marginBottom: 10,
  },
  redText: {
    color: R.colors.red,
  },
  //MODAL Thêm Bút Phê
  modalOverlay: {
    flex: 1,
    backgroundColor: 'rgba(0, 0, 0, 0.5)',
    justifyContent: 'center',
    alignItems: 'center',
  },
  modalContainer: {
    backgroundColor: 'white',
    borderRadius: 10,
    width: '90%',
    maxHeight: '80%',
  },
  modalHeader: {
    flexDirection: 'row',
    justifyContent: 'center',
    alignItems: 'center',
    padding: 10,
  },
  modalTitle: {
    fontSize: R.fontsize.fontsSizeTitle,
    fontWeight: '600',
    fontFamily: R.fonts.fontMedium,
    color: R.colors.blue,
  },
  closeButton: {
    width: 30,
    height: 30,
    justifyContent: 'center',
    alignItems: 'center',
  },
  closeButtonText: {
    fontSize: R.fontsize.fontSizeContent,
    color: R.colors.gray,
    fontWeight: 'bold',
  },
  modalBody: {
    paddingHorizontal: 15,
  },
  inputLabel: {
    fontSize: R.fontsize.fontSizeContent,
    color: R.colors.black,
    marginBottom: 3,
    fontWeight: '600',
    fontFamily: R.fonts.fontMedium,
  },
  textInput: {
    borderWidth: 1,
    borderColor: R.colors.grayBorderInputTextHeader,
    borderRadius: 8,
    padding: 12,
    fontSize: R.fontsize.fontSizeContent,
    color: R.colors.black,
    minHeight: 120,
    textAlignVertical: 'top',
  },
  modalFooter: {
    flexDirection: 'row',
    justifyContent: 'flex-end',
    padding: 15,
  },
  button: {
    paddingHorizontal: 20,
    paddingVertical: 3,
    borderRadius: 30,
    width: 110,
    alignItems: 'center',
    justifyContent: 'center',
  },
  cancelButton: {
    backgroundColor: R.colors.orange,
    marginRight: 10,
  },
  cancelButtonText: {
    color: R.colors.white,
    fontSize: R.fontsize.fontSizeContent,
    fontFamily: R.fonts.fontRegular,
    fontWeight: '400',
  },
  submitButton: {
    backgroundColor: R.colors.blue,
  },
  submitButtonText: {
    color: 'white',
    fontSize: R.fontsize.fontSizeContent,
    fontFamily: R.fonts.fontRegular,
    fontWeight: '400',
  },
  //MODAL Thêm công việc
  containerDropdown: {
    marginBottom: 10,
    marginTop: 10,
    position: 'relative',
    zIndex: 1000,
  },
  chip: {
    flexDirection: 'row',
    alignItems: 'center',
    // position: 'relative',
    paddingLeft: 10,
    paddingRight: 10,
    height: 25,
    borderRadius: 10,
    marginBottom: 10,
    marginRight: 5,
    backgroundColor: R.colors.blue2,
    alignSelf: 'flex-start',
  },
  imageIcon: {
    width: 15,
    height: 15,
  },
  containerIcon: {
    marginRight: 2,
  },

  flatListSelect: {
    flexDirection: 'row',
    flexWrap: 'wrap',
  },
  textChip: {
    fontSize: R.fontsize.fontSizeContent,
    fontWeight: '400',
    fontFamily: R.fonts.fontRegular,
    color: R.colors.blueTextChip,
  },
});

export default styles;
